#ifndef _DATA_MANAGER_H
#define _DATA_MANAGER_H

#include <vector>
#include <string>
using namespace std;

struct stItem{
	string strName;
	string strFile;
	int nScore;
};

struct stLevel{
	string strName;
	int nScore;
	int nHit;
};


class DataManager
{
public:
	DataManager(void);
	~DataManager(void);

	int getMaxSore();
	int updateScore(int nScore);
	bool setTag(int nTag);
	int getTag(){return m_nCurrentTag;}
	void setMusicStatus(bool bMusic);
	bool getMusicStatus();
	
	int getCurrentLevel();
	int updateLevel(int level);
	int getMaxLevel();
	int updateMaxLevel(int nLevel);


	vector<stItem> *getShopData();

	inline vector<stItem> * getCocoData(){return &m_vCoco;}
	inline vector<stItem> * getFruitData() {return &m_vFriut;}
	inline vector<stLevel> * getLevelData(){return &m_vLevelData;}

private:
	void initShop();
	void initLevel();

private:
	int m_nMaxScore;
	vector<stItem> m_vCoco;
	vector<stItem> m_vFriut;
	vector<stLevel> m_vLevelData;
	int m_nCurrentTag;
	bool m_bMusic;
	int m_nLevel;
	int m_nMaxLevel;

};

#endif